<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><?php echo _conf( 'WEB_SITE_SEO_TOP_WORD' ) ?><?php echo $top_title ?> - <?php echo _conf( 'WEB_SITE_NAME' ) ?></title>
<meta name="keywords" content="<?php echo _conf( 'WEB_SITE_SEO_META_KEYWORD' ) ?>">
<meta name="description" content="<?php echo _conf( 'WEB_SITE_SEO_META_DESCRIP' ) ?>">
<?php echo _conf('WEB_SITE_SEO_HEADER_CODE'); ?>
<link href="res/css/douya.css" rel="stylesheet" type="text/css">
</head>

<body>

<?php  
	include_once( ROOT . 'res/tpl/header.tpl.html' );
	//include_once( ROOT . 'meta/city.meta.php' );
?>
<table border="0" width="98%" id="table1" cellspacing="5" cellpadding="5" height="400px" align="center">
	<tr>
		<td valign="top">
		<div class="indent">
		
		<!-- main -->
				<?php 
		if( is_array( $data = get_content_info_by_vote_text( 1 ,  $_SESSION['dy_uid'] ,  0 , 12 ,   '想读' ) )  ):
		?>
		<h2>我想读　· · · · · ·　</h2>
		<?php
		$lines = array_chunk( $data , 5 );
		?>
		<table>
		<?php
		foreach( $lines as $line ):
		?>
		<tr>
		<?php
		foreach( $line as $item ):
		?>
		<td>
			<div align="center"><a href="?u=book_display&id=<?php echo $item["id"]; ?>"><img src="<?php show_module_content_icon( 1 , 'dy_book_pic' , $item['id'] , $item['dy_book_pic'] ) ?>" class="m_sub_img" border="0"/><br/><?php echo $item["dy_book_title"]; ?></a></div>
		</td>
		<?php endforeach;
		?>
		<tr/>
		<?php
		endforeach;
		?>
		</table>
		    <!--<p class="pl">&gt; <a href="?a=">所有想读的书刊</a></p></div><br/> -->
		<?php
		endif;
		?>
        
				<?php 
		if( is_array( $data = get_content_info_by_vote_text( 1 ,  $_SESSION['dy_uid'] ,  0 , 12 ,   '在读' ) )  ):
		?>
		<h2>我在读　· · · · · ·　</h2>
		<?php
		$lines = array_chunk( $data , 5 );
		?>
		<table>
		<?php
		foreach( $lines as $line ):
		?>
		<tr>
		<?php
		foreach( $line as $item ):
		?>
		<td>
			<div align="center"><a href="?u=book_display&id=<?php echo $item["id"]; ?>"><img src="<?php show_module_content_icon( 1 , 'dy_book_pic' , $item['id'] , $item['dy_book_pic'] ) ?>" class="m_sub_img" border="0"/><br/><?php echo $item["dy_book_title"]; ?></a></div>
		</td>
		<?php endforeach;
		?>
		<tr/>
		<?php
		endforeach;
		?>
		</table>
		    <!--<p class="pl">&gt; <a href="?a=">所有在读的书刊</a></p></div><br/> -->
		<?php
		endif;
		?>
        
				<?php 
		if( is_array( $data = get_content_info_by_vote_text( 1 ,  $_SESSION['dy_uid'] ,  0 , 12 ,   '读过' ) )  ):
		?>
		<h2>我读过　· · · · · ·　</h2>
		<?php
		$lines = array_chunk( $data , 5 );
		?>
		<table>
		<?php
		foreach( $lines as $line ):
		?>
		<tr>
		<?php
		foreach( $line as $item ):
		?>
		<td>
			<div align="center"><a href="?u=book_display&id=<?php echo $item["id"]; ?>"><img src="<?php show_module_content_icon( 1 , 'dy_book_pic' , $item['id'] , $item['dy_book_pic'] ) ?>" class="m_sub_img" border="0"/><br/><?php echo $item["dy_book_title"]; ?></a></div>
		</td>
		<?php endforeach;
		?>
		<tr/>
		<?php
		endforeach;
		?>
		</table>
		    <!--<p class="pl">&gt; <a href="?a=">所有读过的书刊</a></p></div><br/> -->
		<?php
		endif;
		?>
        
				</div>

		</td>
		<td width="300px" class=top>
		<!-- right -->
		<p align="center"  ><form action="?u=book_list" method="GET">
	<table align="center" class="info_box" cellspacing="5" cellpadding="5"><tr><td class="sbjtd">
    <p align="center" class="pl">
	<?php 
	if( $sinfo = get_module_search_fields_by_id( 1 ) )
	{
		echo join( '、' , $sinfo );
	}
	?></p><input name="cat" type="hidden" value="1001"/><p align="center"><input name="search_text" type="text" size="20" maxlength="72"" value="" id="search_text"/>
       <input name="search_submit" type="submit" value="搜索"/><INPUT TYPE="hidden" name="u" value="book_list">
     </p></td></tr></table></p></form>
		
		</td>
	</tr>
</table>
<?php  
	include_once( ROOT . 'res/tpl/footer.tpl.html' );
?>
</body>

</html>